package com.bjtu.ptsite.model;


import java.math.BigDecimal;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@TableName("user")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(type = IdType.AUTO)
    private int userId;

    @TableField
    private String username;
    @TableField
    private String email;
    @TableField
    private String password;
    @TableField
    private String address;
    @TableField
    private String role;
    @TableField
    private String profilePic;
    @TableField
    private String registrationDate;
    @TableField
    private int identificationNumber;
    /**
     *
     * 头像
     *
     */
    @TableField
    private String avatar;
    @TableField
    private int seedPoints;
    private int uploadGB;

    private String passKey;
    private int level;
    private long uploadedDelta;
    private long downloadedDelta;
    private BigDecimal sharingRate;
    private int follows;
    private int fans;
    private boolean isBaned;
    private boolean dailyAward;
    private int unactivateDay;
    private int assessDay;
    private long uploadAssess;

    /**
     *
     * 仅作为返回的用户参数，不要加在数据库表中
     *
     */
    private boolean isFollowed;
}
